package com.tengju.bff.interfaces.covercharge.constant;
/**
 * 代发服务内部状态枚举
 *
 * @author cj
 */
public enum ApplicationBusinessEnum {
    DT("DT",1),
    ABM("ABM",2),
    TJ("TJ",3);

    private String code;
    private Integer desc;

    ApplicationBusinessEnum(String code, Integer desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode(){
        return this.code;
    }
    public Integer getDesc(){
        return this.desc;
    }

    public static ApplicationBusinessEnum getBusinessDesc (String code){

        //统一直接返回TJ
        return TJ;
//        for(ApplicationBusinessEnum codeEnum : (ApplicationBusinessEnum.values())){
//            if(codeEnum.getCode().equals(code)){//如果传入的code与此枚举code相同，则返回此枚举
//                return codeEnum;
//            }
//        }
//        return null;
    }
}
